package pri.zxx.excelgenerate.dataentity;

import lombok.Data;
import lombok.experimental.Accessors;
import pri.zxx.learndemo.localUtils.LocalDateUtil;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.UUID;

@Data
@Accessors(chain = true)
public class CommonData {


    //客户名称
    private String customerNameValue = UUID.randomUUID().toString().replaceAll("-", "").substring(0, 5);

    //报告日期
    private String pdfDateValue = LocalDateUtil.formatter(LocalDate.now());

    //饲喂程序批次号
    private String feedingBatchNoValue = String.valueOf(Math.random());

    //动物类型
    private String animalTypeNameValue = "妊娠母猪";

    //品种
    private String varietyNameValue = "杜长大";
    //营养师建议
    private String advise;
    //编号
    private String reportNo = "NO: NHR_SWINE_" + Thread.currentThread().getId() + LocalDateTime.now().format(LocalDateUtil.day_time);
}
